const path =require('path')
const resolve = dir => path.join(__dirname, dir)
module.exports = {
	chainWebpack: (config) => {
		config.resolve.alias // 添加别名
			.set('@api', resolve('static/api/apiList.js'))
			.set('@static', resolve('src/static'))
			.set('@img', resolve('static/img'));
	}
}